package com.example.file_20210629;

import java.io.File;
import java.io.IOException;

public class FileTest {

    public static void main(String[] args) {
//        File file2 = new File("D:/aaa/");
//        System.out.println(file2);
//        if(!file2.exists()){
//            file2.mkdirs();
//        }
//        File file1 = new File(file2,"777.txt");
//        if(!file1.exists()){
//            try {
//                file1.createNewFile();
//            } catch (IOException e) {
//                e.printStackTrace();
//            }
//        }
        File file3 = new File("D:/bbb/555.txt");
        File file4 = new File("D:/bbb/","555.txt");
        File file5 = new File("D:/bbb");
        File file6 = new File(file5,"555.txt");
    }
}
